package com.pet.shop.mappers.room;

import com.github.pagehelper.Page;
import com.pet.shop.dto.PageDto;
import com.pet.shop.entity.room.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomMapper {

    int delete(Long id);

    int insert(Room record);

    Room get(Long id);

    int update(Room record);

    Page<Room> queryPage(PageDto<Room> pageDto);

    List<Long> queryIdByHotelId(@Param("hotelId") Long hotelId);

    List<Room> queryByIdList(@Param("idList") List<Long> roomIdList);
}